import request from '@/utils/request'

// 查询接诊记录列表
export function listReceiveRecord(query) {
  return request({
    url: '/system/receiveRecord/list',
    method: 'get',
    params: query
  })
}

// 查询接诊记录详细
export function getReceiveRecord(receiverecordid) {
  return request({
    url: '/system/receiveRecord/' + receiverecordid,
    method: 'get'
  })
}

// 新增接诊记录
export function addReceiveRecord(data) {
  return request({
    url: '/system/receiveRecord',
    method: 'post',
    data: data
  })
}

// 修改接诊记录
export function updateReceiveRecord(data) {
  return request({
    url: '/system/receiveRecord',
    method: 'put',
    data: data
  })
}

// 删除接诊记录
export function delReceiveRecord(receiverecordid) {
  return request({
    url: '/system/receiveRecord/' + receiverecordid,
    method: 'delete'
  })
}

// 导出接诊记录
export function exportReceiveRecord(query) {
  return request({
    url: '/system/receiveRecord/export',
    method: 'get',
    params: query
  })
}